* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #0c0c1a 0%, #1a1a2e 50%, #16213e 100%);
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
    position: relative;
}

/* 背景动画 */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.1);
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) rotate(360deg);
        opacity: 0;
    }
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(231, 76, 60, 0.7), transparent);
    animation: scan 4s linear infinite;
    z-index: 1;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(20, 20, 35, 0.85);
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.header {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
    padding: 35px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: pulse 10s infinite linear;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.shield-container {
    width: 140px;
    height: 140px;
    margin: 0 auto 25px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
}

.shield {
    width: 100%;
    height: 100%;
    animation: shield-pulse 2.5s infinite alternate;
}

@keyframes shield-pulse {
    0% {
        transform: scale(1) rotate(0deg);
        filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
    }
    100% {
        transform: scale(1.08) rotate(2deg);
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.5));
    }
}

.title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: 1.5px;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.subtitle {
    font-size: 18px;
    opacity: 0.9;
    position: relative;
    z-index: 2;
    font-weight: 500;
}

.content {
    padding: 40px;
}

.alert-box {
    background: rgba(231, 76, 60, 0.15);
    border-left: 5px solid #e74c3c;
    padding: 22px;
    border-radius: 8px;
    margin-bottom: 35px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.alert-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    transform: translateX(-100%);
}

.alert-box:hover::before {
    animation: shimmer 1.5s ease;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.alert-box:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.2);
}

.alert-icon {
    margin-right: 18px;
    font-size: 28px;
    animation: alert-pulse 2s infinite;
}

@keyframes alert-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.alert-text {
    font-size: 20px;
    font-weight: 600;
}

.details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.details:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.details-title {
    font-size: 22px;
    margin-bottom: 25px;
    color: #e74c3c;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.details-title svg {
    margin-right: 12px;
}

.detail-item {
    display: flex;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 10px;
    border-radius: 6px;
}

.detail-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    width: 160px;
    color: #aaa;
    font-size: 16px;
}

.detail-value {
    flex: 1;
    word-break: break-all;
    font-size: 16px;
    color: #e0e0e0;
}

/* JSON 上下文样式 */
.context-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

.context-section:hover {
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.context-title {
    font-size: 22px;
    margin-bottom: 20px;
    color: #e74c3c;
    display: flex;
    align-items: center;
    font-weight: 700;
}

.context-title svg {
    margin-right: 12px;
}

.context-json {
    background: rgba(10, 10, 20, 0.8);
    border-radius: 8px;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.5;
    color: #e0e0e0;
    max-height: 300px;
    overflow-y: auto;
}

.context-json code {
    display: block;
    white-space: pre;
}

/* JSON 语法高亮 */
.json-key {
    color: #3498db;
}

.json-string {
    color: #2ecc71;
}

.json-number {
    color: #e74c3c;
}

.json-boolean {
    color: #f39c12;
}

.json-null {
    color: #95a5a6;
}

.actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.btn {
    padding: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
    color: #aaa;
    background: rgba(0, 0, 0, 0.2);
}

@media (max-width: 700px) {
    .header {
        padding: 25px;
    }

    .shield-container {
        width: 100px;
        height: 100px;
    }

    .title {
        font-size: 28px;
    }

    .content {
        padding: 25px;
    }

    .detail-item {
        flex-direction: column;
    }

    .detail-label {
        width: 100%;
        margin-bottom: 8px;
    }

    .actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }
}